package com.xyh.ollama_test.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;


@Configuration
public class OllamaConfig {
    @Value("${ollama.api.url:http://localhost:11434}")
    private String ollamaApiUrl;

    @Bean
    public WebClient ollamaWebClient() {
        return WebClient.create(ollamaApiUrl);
    }
}
